package com.gxa.hotel.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author hotel
 * @since 2022-07-20
 */
@Getter
@Setter
@TableName("tb_goods_order")
@ApiModel(value = "GoodsOrder对象", description = "")
public class GoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "go_aid")
    @ApiModelProperty("订单编号")
      private String goAid;

    @ApiModelProperty("发货流水号")
    private String goDeliverId;

    @ApiModelProperty("用户手机号")
    private String goName;

    @ApiModelProperty("用户手机号")
    private String goPhone;

    @ApiModelProperty("支付方式")
    private String goPayWay;

    @ApiModelProperty("配送方式")
    private String goDistributionMode;

    @ApiModelProperty("物流单号")
    private Integer goLogisticsNum;

    @ApiModelProperty("订单状态")
    private Integer goState;

    @ApiModelProperty("提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using= LocalDateTimeDeserializer.class)
    private LocalDateTime goSubmitTime;

    @ApiModelProperty("订单可得积分")
    private Integer goOrderPoints;

    @ApiModelProperty("描述")
    private String goInfo;

    @ApiModelProperty("订单金额")
    private Double goPrice;

    @TableLogic
    @JsonFormat
    @ApiModelProperty("删除状态")
    private Integer deleted;
}
